#!/usr/bin/python

import random

sum = 0.0
count = 0.0
for i in range(50):
	f = open('files/file-' + str(i+1) + '.txt', 'w')

	for i in range(5):
		val = random.uniform(0.0, 1000.0)
		count = count + 1
		sum = val + sum
		f.write(str(val) + '\n')

	f.flush()
	f.close()

for i in range(50, 100):
	f = open('files/file-' + str(i+1) + '.txt', 'w')
    
	for i in range(5):
		val = random.uniform(2000.0, 3000.0)
		count = count + 1
		sum = val + sum
		f.write(str(val) + '\n')
            
	f.flush()
	f.close()

print("Average\t" + str(sum / count))